<script setup>

import SonView from './components/SonView.vue';
// import Son2View from '../components/Son2View.vue';
import { UseCountstore } from './components/store/counter';
import { useChannelStore } from './components/store/channel'
import { storeToRefs } from 'pinia';
const counterstore = UseCountstore()
const counterchannel = useChannelStore()
const {msg}=storeToRefs(counterstore)
 


</script>

<template>
  总计:<span>{{ msg }}</span> <button @click="counterstore.Add">+</button>
  <SonView></SonView><br><button>+</button>
  <!-- <Son2View></Son2View><button>-</button> -->
  <hr>
  <button @click="counterchannel.getList">aaa</button>
  <ul>
    <li v-for="item in counterchannel.channelList" :key="item.id">{{ item.name }}</li>
  </ul>
</template>

<style scoped></style>
